home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
001-025
/
scopedisk8
/
superlib
/
libsrc.arc
/
mntreq.c
< prev
next >
Wrap
C/C++ Source or Header
|
1987-12-22
|
385b
|
19 lines
extern struct Process *FindTask();
mountrequest(bool)
{
static APTR original_pr_WindowPtr;
register struct Process *proc;
proc = FindTask(0);
if (!bool && proc->pr_WindowPtr != (APTR)-1) {
original_pr_WindowPtr = proc->pr_WindowPtr;
proc->pr_WindowPtr = (APTR)-1;
}
if (bool && proc->pr_WindowPtr == (APTR)-1)
proc->pr_WindowPtr = original_pr_WindowPtr;
}